#include<stdio.h>
#include<string.h>

void left_move(char arr[], int n)
{	
	int k = 0;
	int l = 0;
	int e = strlen(arr);
	for (l = 0; l < n; l++)
	{
		char tmp = *arr;
		for (k = 0; k < e; k++)
		{
			*(arr + k) = *(arr + k + 1);
		}
		*(arr + e - 1) = tmp;
	}	
}

int main()
{
	char arr[] = "aksdfhjdksbdjs";
	int n = 0;
	scanf_s("%d", &n);
	printf("%s\n", arr);
	left_move(arr, n);
	printf("%s\n", arr);
	return 0;
}